package com.zbkj.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券记录表
 * </p>
 *
 * @author Your Name
 * @since 2024-12-02
 */
@Data
  @EqualsAndHashCode(callSuper = false)
  @Accessors(chain = true)
@TableName("eb_store_coupon_user")
@ApiModel(value="StoreCouponUser对象", description="优惠券记录表")
public class StoreCouponUser implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty(value = "优惠券发布id")
      private Integer couponId;

      @ApiModelProperty(value = "兑换的项目id")
      private Integer cid;

      @ApiModelProperty(value = "领取人id")
      private Integer uid;

      @ApiModelProperty(value = "优惠券名称")
      private String name;

      @ApiModelProperty(value = "优惠券的面值")
      private BigDecimal money;

      @ApiModelProperty(value = "最低消费多少金额可用优惠券")
      private BigDecimal minPrice;

      @ApiModelProperty(value = "获取方式，send后台发放, 用户领取 get")
      private String type;

      @ApiModelProperty(value = "状态（0：未使用，1：已使用, 2:已失效）")
      private Boolean status;

      @ApiModelProperty(value = "创建时间")
      private LocalDateTime createTime;

      @ApiModelProperty(value = "更新时间")
      private LocalDateTime updateTime;

      @ApiModelProperty(value = "开始使用时间")
      private LocalDateTime startTime;

      @ApiModelProperty(value = "过期时间")
      private LocalDateTime endTime;

      @ApiModelProperty(value = "使用时间")
      private LocalDateTime useTime;

      @ApiModelProperty(value = "使用类型 1 全场通用, 2 商品券, 3 品类券")
      private Boolean useType;

      @ApiModelProperty(value = "所属商品id / 分类id")
      private String primaryKey;


}
